package com.wang.service.openfeign;

import com.aaa.util.PayUtils;
import com.aaa.vo.Result;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wql
 * @version 1.0
 * @date 2023/3/14 21:10
 */
@FeignClient(value = "front-business")
public interface WXFeign {
    @PostMapping( value = "/business/order/buyWei" ,consumes = "application/json")
    public Result buyNow(@RequestBody PayUtils payUtils);

    @RequestMapping("/business/order/paystatus/{orderno}")
    public Result payStatus(@PathVariable String orderno);

}
